package com.solution.admin.customer.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.customer.entity.DeliverFreeAreaEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 客户免运费区域DAO接口
 * @author solin
 * @date 2017-09-22 11:56:47
 */
public interface DeliverFreeAreaDao extends BaseDao<DeliverFreeAreaEntity> {
	
	/**
	 * 保存客户免运费区域
	 * @param deliverFreeAreaEntity
	 * @return
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public long saveDeliverFreeArea(DeliverFreeAreaEntity deliverFreeAreaEntity);

	/**
	 * 分页查询客户免运费区域信息
	 * @param pageParam 分页对象
	 * @param deliverFreeArea 分页参数
	 * @return PageBean 分页参数及数据
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public PageBean listDeliverFreeAreaPage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新客户免运费区域
	 * @param deliverFreeAreaEntity
	 * @return
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public int updateDeliverFreeArea(DeliverFreeAreaEntity deliverFreeAreaEntity);


	/**
	 * 删除客户免运费区域角色
	 * @param id
	 * @return
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public int deleteDeliverFreeAreaById(Long id);
	
	/**
	 * 根据客户免运费区域类型获取客户免运费区域
	 * @param param
	 * @return
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public List<DeliverFreeAreaEntity> listDeliverFreeArea( Map<String, Object> param);
}
